<%@ page import="utils.Book" %>
<%@ page import="utils.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购买页面</title>
    <meta charset="utf-8">
    <script src="./bootstrap/js/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <script src="./bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/order.css">
</head>
<body>
    <img src="image/logo.jpg">
    <div style="color: red;font-size: 36px;margin-top: -50px;margin-left: 500px;">订单详情页</div>
    <% String user=(String)request.getSession().getAttribute("user");%>
    <div id="hello"><%=user%><b>的订单页</b><a href="/ExitServlet">退出</a></div>
    <div id="content">
        <%
            Book book=(Book)request.getSession().getAttribute("book");
            String count = (String)session.getAttribute("count");
           double sum=Integer.parseInt(count)*book.getPrice();
        %>
        <img id="img1" src="${book.url}">
        <div id="info">
            <span>${book.name}</span><br>
            <span>${book.author}</span><br>
            <span>${book.publisher}</span><br>
            <span>共计：<%= sum%>元</span><br>
            <span>用户：<%= user%></span><br>
            <input type="button" value="立即支付">
        </div>
    </div>
    <footer>
        <br>关于我们 - 广告合作 - 联系我们 - 免责声明 - 网站地图 - 投诉建议 - 在线投稿<br>
        ©CopyRight 2006-2017 JB51.Net Inc All Rights Reserved. 西柚书屋
    </footer>
</body>
</html>
